package chapter5.dao;
import chapter5.entity.User;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public class UserDaoImp{
    public List<User> getUserList() {
        /*模拟数据库操作获取用户信息列表数据赋值给list，并返回list结果集*/
        List<User> list = new ArrayList<User>();
        User user = new User();
        user.setId("1001");
        user.setName("张三");
        list.add(user);
        User user1 = new User();
        user1.setId("1002");
        user1.setName("李四");
        list.add(user1);
        return list;
    }
}

